package com.foruo.learn.designmode.proxy.cglibProxy;

/**
 * 测试类
 * @author GaoYuan
 */
public class TestMe {

    public static void main(String[] args){
        //被代理类
        Person person = new Person();
        //代理类
        Person personProxy = (Person)new PersonCglibProxy(person).getProxyInstance();
        personProxy.eat();
    }
}
